home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / Solitaire / Sources / Pyramid / WasteCardPileDelegate.h < prev    next >
Text File  |  1994-01-12  |  1KB  |  43 lines

  1. /* indent:4  tabsize:8  font:fixed-width */
  2.  
  3. /*--------------------------------------------------------------------------
  4. |---------------------------------------------------------------------------
  5. |
  6. |    WasteCardPileDelegate : Object
  7. |
  8. |    An instance of this class acts as a delegate for messages from the
  9. |    Waste Pile in the Pyramid solitaire game.
  10. | --------------------------------------------------------------------------
  11. \--------------------------------------------------------------------------*/
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface WasteCardPileDelegate:Object
  16. {
  17.     id discardCardPileViewL;    /* the left discard pile */
  18.     id discardCardPileViewR;    /* the right discard pile */
  19. }
  20.  
  21. /*----------------------------------------------------------------------------
  22. |
  23. |    Delegation setting methods.
  24. |
  25. \---------------------------------------------------------------------------*/
  26.  
  27. - setDiscardLeft:left discardRight:right;
  28.  
  29.  
  30. /*----------------------------------------------------------------------------
  31. |
  32. |    CardPileView delegation methods
  33. |
  34. \---------------------------------------------------------------------------*/
  35.  
  36. - (BOOL)canAcceptPile:aCardPile from:sender in:wasteCardPileView;
  37. - acceptPile:aCardPile in:wasteCardPileView;
  38. - (BOOL)draggedPile:aCardPile from:wasteCardPileView;
  39. - doubleClickedCard:aCard in:aCardPileView;
  40.  
  41.  
  42. @end
  43.